/*
 * @Author: dvlproad
 * @Date: 2022-12-27 18:42:49
 * @LastEditors: dvlproad
 * @LastEditTime: 2023-10-31 19:05:16
 * @Description: 
 */
import 'package:flutter/material.dart';
import 'package:provider/provider.dart';

import 'base/lifecycle_base_page.dart';
// import 'shared_normalview_3pd/ts_pd.dart';
import 'shared_normalview_3pd/ts_shared_normalview_notifier.dart';
import 'shared_webview_pd/ts_shared_webview_notifier.dart';
import 'ts_shared_view_home_page.dart';

void main() {
  // runApp(const MyApp());
  runApp(
    MultiProvider(
      providers: [
        ChangeNotifierProvider(
            create: (_) => TSSharedNormalViewContainerModel()),
        ChangeNotifierProvider(create: (_) => TSSharedWebViewContainerModel()),
      ],
      child: const MyApp(),
    ),
  );
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        // This is the theme of your application.
        //
        // Try running your application with "flutter run". You'll see the
        // application has a blue toolbar. Then, without quitting the app, try
        // changing the primarySwatch below to Colors.green and then invoke
        // "hot reload" (press "r" in the console where you ran "flutter run",
        // or simply save your changes to "hot reload" in a Flutter IDE).
        // Notice that the counter didn't reset back to zero; the application
        // is not restarted.
        primarySwatch: Colors.blue,
      ),
      home: const MyHomePage(title: 'Flutter Demo Home Page'),
      navigatorObservers: [LifeCyclePage.routeObserver],
    );
  }
}
